﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="postNew.aspx.cs" Inherits="imageteporarty" meta:resourcekey="PageResource1" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">

        function OnClientShow(sender, args) {
                    
            var resultsList = sender.get_completionList();
            
            if(resultsList.childNodes.length>0)

            for (var i = 0; i < resultsList.childNodes.length; i++) {
                   resultsList.childNodes[i].innerHTML=resultsList.childNodes[i]._value;
            }                                    
            
        }

        function GetSelectedItem(sender, args) {

            var strInTextbox = args.get_value();

            strInTextbox = strInTextbox.replace("<B>", "");
            strInTextbox = strInTextbox.replace("</B>", "");

            window.document.getElementById('TextBox7').value = strInTextbox;
        } 

    </script>

  <link rel="stylesheet" type="text/css" href="style.css" />
      
    
</head>
<body>

    <form id="form1" runat="server" method=post enctype="multipart/form-data">
   <div id=header> 
            <asp:Panel ID="Panel1" runat="server" SkinID="topPanel" 
                meta:resourcekey="Panel1Resource1">
                <br />
                <br />
                <asp:Label ID="Label2" runat="server" SkinID="labelSkin" 
                    meta:resourcekey="Label2Resource1"></asp:Label>
                <asp:LinkButton ID="logoutButton" runat="server" SkinID="linkbuttonLogoutSkin" 
                    onclick="btnLogout_Click" Visible="False" 
                    meta:resourcekey="logoutButtonResource1">logoutButton</asp:LinkButton>
           
             </asp:Panel>
    </div>
            <br />
    <div id=main>
            <table style="width:49%;">
                <tr>
                    <td class="style1">
                        <asp:Label ID="labelCompName" runat="server" SkinID="labelSkin"
                    meta:resourcekey="labelCompNameResource1" style="text-align: left"></asp:Label>   
                    </td>
                    
                    <td class="style2">
    <asp:TextBox ID="TextBox1" runat="server" Height="22px" Width="198px" 
                            meta:resourcekey="TextBox1Resource1"></asp:TextBox>
                    </td>
                    
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="labelCountry" runat="server" SkinID="labelSkin" 
                            meta:resourcekey="labelCountryResource1" style="text-align: left"></asp:Label></td>
                    <td class="style2">
    <asp:TextBox ID="TextBox4" runat="server" Height="22px" Width="198px" 
                            meta:resourcekey="TextBox4Resource1"></asp:TextBox>
                    </td>
                    
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="labelCity" runat="server" SkinID="labelSkin" 
                            meta:resourcekey="labelCityResource1" style="text-align: left"></asp:Label></td>
                    <td class="style2">
    <asp:TextBox ID="TextBox7" runat="server" Height="22px" Width="198px" 
                            meta:resourcekey="TextBox7Resource1"></asp:TextBox>
                        
                        <asp:AutoCompleteExtender ID="TextBox7_AutoCompleteExtender" 
                                                  BehaviorID="TextBox7_AutoCompleteExt" 
                                                  runat="server"
                                                  DelimiterCharacters="" 
                                                  Enabled="True" 
                                                  EnableCaching="true" 
                                                  ServiceMethod="GetCompletionList" 
                                                  ServicePath="" 
                                                  TargetControlID="TextBox7" 
                                                  UseContextKey="True" 
                                                  MinimumPrefixLength=2 
                                                  CompletionInterval=2 
                                                  CompletionSetCount=10 
                                                  OnClientPopulated="OnClientShow" 
                                                  OnClientItemSelected="GetSelectedItem" >                        
                        </asp:AutoCompleteExtender>
                    </td>
                    
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="labelAddress" runat="server" SkinID="labelSkin" 
                            meta:resourcekey="labelAddressResource1" style="text-align: left"></asp:Label> </td>
                    <td class="style2">
    <asp:TextBox ID="TextBox2" runat="server" Height="22px" Width="198px" 
                            meta:resourcekey="TextBox2Resource1"></asp:TextBox>
                    </td>
                </tr>
             <tr>
                    <td class="style1">
                        <asp:Label ID="labelPhone" runat="server" SkinID="labelSkin" 
                            meta:resourcekey="labelPhoneResource1" style="text-align: left"></asp:Label></td>
                    <td class="style2">
    <asp:TextBox ID="TextBox8" runat="server" Height="22px" Width="198px" 
                            meta:resourcekey="TextBox8Resource1"></asp:TextBox>
                    </td>
                </tr>
                 <tr>
                    <td class="style1">
                        <asp:Label ID="labelFax" runat="server" SkinID="labelSkin" 
                            meta:resourcekey="labelFaxResource1" style="text-align: left"></asp:Label></td>
                    <td class="style2">
    <asp:TextBox ID="TextBox9" runat="server" Height="22px" Width="198px" 
                            meta:resourcekey="TextBox9Resource1"></asp:TextBox>
                     </td>
                </tr>
                 <tr>
                    <td class="style1">
                        <asp:Label ID="labelEmail" runat="server" SkinID="labelSkin" 
                            meta:resourcekey="labelEmailResource1" style="text-align: left"></asp:Label></td>
                    <td class="style2">
    <asp:TextBox ID="TextBox3" runat="server" Height="22px" Width="198px" 
                            meta:resourcekey="TextBox3Resource1"></asp:TextBox>
                     </td>
                </tr>
                 <tr>
                    <td class="style1">
                        <asp:Label ID="labelWebSite" runat="server" SkinID="labelSkin" 
                            meta:resourcekey="labelWebSiteResource1" style="text-align: left"></asp:Label></td>
                    <td class="style2"><asp:TextBox 
        ID="TextBox10" runat="server" Height="22px" Width="198px" 
                            meta:resourcekey="TextBox10Resource1"></asp:TextBox>
                     </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="labelLogo" runat="server" SkinID="labelSkin" 
                            meta:resourcekey="labelLogoResource1" style="text-align: left"></asp:Label></td>
                    <td class="style2">&nbsp;<input id="UploadFileInput" type="file" runat="server" onclick="return UploadFileInput_onclick()"></td>
                </tr>
                
            </table>


            <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>


            <br />
    
            <asp:Panel ID="Panel2" runat="server" Height="204px" 
                meta:resourcekey="Panel2Resource1">
                             <asp:ScriptManager ID="ScriptManager1" runat="server">
                             </asp:ScriptManager>
                             <br />
                             &nbsp; Short description:&nbsp;
        <br />
    <br />

    <asp:TextBox ID="TextBox5" runat="server" Height="125px" Width="255px" TextMode="MultiLine" 
                                 meta:resourcekey="TextBox5Resource1"></asp:TextBox>
                <br />
                &nbsp;
            </asp:Panel>
       
            <br />
            <asp:Panel ID="Panel3" runat="server" Height="230px" 
                meta:resourcekey="Panel3Resource1">
                &nbsp; Search keywords (words or statements
                <br />
                &nbsp; should be separated by semicilon):
                <br />
                <br />
                <asp:TextBox ID="TextBox6" runat="server" Height="141px" Width="255px" 
                    meta:resourcekey="TextBox6Resource1"></asp:TextBox>
                <br />
                <br />
            </asp:Panel>
            <br />
&nbsp;
    
    <br />
    <div>
    
    </div>
    <br />
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Post" 
        Width="68px" meta:resourcekey="Button1Resource1" />
    &nbsp;
    <asp:Button ID="btnCancel" runat="server" onclick="btnCancel_Click" Text="Cancel" 
        Width="77px" meta:resourcekey="btnCancelResource1" />
    </div>
         <div id=footer>
  
             <asp:LinkButton ID="Link_EN" runat="server" SkinID="linkbuttonSkin" meta:resourcekey="Link_ENResource1" 
                 onclick="Link_EN_Click">LinkButton</asp:LinkButton>
&nbsp;|
             <asp:LinkButton ID="Link_RU" runat="server" SkinID="linkbuttonSkin" meta:resourcekey="Link_RUResource1"
                 onclick="Link_RU_Click">LinkButton</asp:LinkButton>
  
         </div>
    </form>
</body>
</html>
